layui.use(['form','layer','laydate','table','laytpl'],function(){
	    var form = layui.form,
	        layer = parent.layer === undefined ? layui.layer : top.layer,
	        $ = layui.jquery,
	        laydate = layui.laydate,
	        laytpl = layui.laytpl,
	        table = layui.table;
		//列表数据
		var tableIns = 	table.render({
		        id : "listTable",
				elem : '#list',
				height :"full-125",
				toolbar: true,
				defaultToolbar: ['filter', 'print', 'exports'],
				url :ctxPath+ '/tSystemOperationLog/tSystemOperationLogList' ,//数据接口
				page : true, //开启分页,
			        cols : [[
			            {type: "numbers", fixed:"left", width:50},
							{field: 'id', title: '主键', align:"center",hide:true},
							{field: 'logName', title: '日志名称', align:"center",hide:false},
							{field: 'logType', title: ' 操作类型', align:"center",hide:false,templet:function(d){
								return $.dict.cache('1234567891023',d.logType);
							}},
							{field: 'operationFlag', title: '操作状态', align:"center",hide:false,templet:function(d){
								return d.operationFlag==0?'成功':失败;
							}},
							{field: 'reqUrl', title: '操作url', align:"center",hide:false},
							{field: 'classTypeName', title: '请求类+包名称', align:"center",hide:true},
							{field: 'methodName', title: '方法名称', align:"center",hide:true},
							{field: 'params', title: '参数', align:"center",hide:true},
							{field: 'operationResult', title: '操作返回结果', align:"center",hide:true},
							{field: 'executeTime', title: '执行时间', align:"center",hide:false},
							{field: 'ip', title: 'ip', align:"center",hide:false},
							{field: 'address', title: '操作地区', align:"center",hide:false},
							{field: 'userAgentStr', title: '用户使用系统信息字符串', align:"center",hide:true},
				            {field: 'createTime', title: '创建时间', align:'center', align:'center'},
			            {title: '操作', width:170, fixed:"right",align:"center",templet:function(d){
			            	return '<a class="layui-btn layui-btn-xs boot-layer " boot-title="操作日志详情" boot-url="'+ctxPath+'/tSystemOperationLog/tSystemOperationLogDetail?id='+d.id+'">详情</a>';
			            }}
			        ]]
			});
//==========================添加start==================
		// 初始化日期控件
		laydate.render({
			elem : '#startTime',
			max : _.formatDate(new Date()), // 日期最大到今天
		});
		laydate.render({
			elem : '#endTime',
			max : _.formatDate(new Date()), // 日期最大到今天
		});

		});